package com.qq.crawiling_weather.Util;

import com.qq.crawiling_weather.entity.Cityweather;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName JsonChange
 * @Description TODO
 * Author yangqinglin
 * @Date 2021/1/11 15:52
 * @Version
 **/
public class JsonChange {
//前端echarts接收数据--后台转json
     public  static  Map<String ,Object> change (List<?> list,int count)
    {

        Map<String, Object> map = new HashMap<>();

        map.put("code",0);
        map.put("msg",null);
        map.put("count",count);
        map.put("data",list);


        return map;

    }

    }
